package com.linkoog.devtools.dubbo.parser;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.jetbrains.annotations.NotNull;

import java.io.Serializable;


@ToString
@EqualsAndHashCode
public class DubboService implements Serializable {

    /**
     *  dubbo接口的来源
     *  1、xml文件声明方式： xml-provider、xml-consumer
     *  2、Annotation注解声明方式：anno-provider、anno-consumer
     */
    @Getter
    private final String sourceType;
    @Getter
    private final String inface;
    @Getter
    private final String version;
    @Getter
    private final String group;


    public DubboService(@NotNull String sourceType,@NotNull String inface, @NotNull String version,@NotNull String group) {
        this.sourceType = sourceType;
        this.inface = inface;
        this.version = version;
        this.group = group;
    }
}
